home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-PR / MPW / Scripts / AliasSourceServer next >
Encoding:
Text File  |  1998-04-24  |  2.9 KB  |  61 lines  |  [TEXT/MPS ]

  1. #    File:    AliasSourceServer
  2. #
  3. #    Copyright Apple Computer, Inc. 1991-98
  4. #    All rights reserved.
  5. #
  6. #
  7. #        Scripts that have Projector commands within them can normally not be 
  8. #    executed by ToolServer. Using SourceServer, the RProj command, and three support
  9. #    scripts (AliasSourceServer, UnaliasSourceServer, and Directory2), ToolServer
  10. #    can perform Projector functions. SourceServer must be running on the same
  11. #    computer as ToolServer before the Projector scripts can be executed.
  12. #    Individual Projector command lines are sent from ToolServer to SourceServer
  13. #    via AppleEvents by the RProj command. To allow RProj to automatically be invoked
  14. #    any time a Projector command is encountered, we use the AliasSourceServer
  15. #    script to alias each ProjectorCommand to "RProj ProjectorCommand". To make
  16. #    sure that the aliases remain in effect even after the AliasSourceServer script
  17. #    has finished running, we must use the command line, "Execute AliasSourceServer".
  18. #    Directory commands also need to be aliased to Directory2, which will keep the
  19. #    current directory of both ToolServer and SourceServer set to the same location
  20. #    so both Projector and non-Projector commands operate on the same set of files.
  21. #    This alias is also established by the AliasSourceServer script. Finally, after
  22. #    completion of the Projector commands, "Execute UnaliasSourceServer" restores
  23. #    ToolServer to it's normal operation.
  24. #
  25. #        This file, AliasSourceServer, sets up aliases for ToolServer to reroute
  26. #    Projector commands, via the RProj command, to SourceServer.
  27.  
  28. Alias AuthorInfo "RProj AuthorInfo"
  29. Alias CheckIn "RProj CheckIn"
  30. Alias CheckOut "RProj CheckOut"
  31. Alias CheckOutDir "RProj CheckOutDir"
  32. Alias CompareRevisions "RProj CompareRevisions"
  33. Alias DeleteNames "RProj DeleteNames"
  34. Alias DeleteRevisions "RProj DeleteRevisions"
  35. Alias DuplicateNameRevisions "RProj DuplicateNameRevisions"
  36. Alias LockNameRevisions "RProj LockNameRevisions"
  37. Alias MergeBranch "RProj MergeBranch"
  38. Alias ModifyReadOnly "RProj ModifyReadOnly"
  39. Alias MountProject "RProj MountProject"
  40. Alias NameRevisions "RProj NameRevisions"
  41. Alias NewProject "RProj NewProject"
  42. Alias ObsoleteNameRevisions "RProj ObsoleteNameRevisions"
  43. Alias ObsoleteProjectorFile "RProj ObsoleteProjectorFile"
  44. Alias OrphanFiles "RProj OrphanFiles"
  45. Alias Project "RProj Project"
  46. Alias ProjectInfo "RProj ProjectInfo"
  47. Alias RenameProjectorFile "RProj RenameProjectorFile"
  48. Alias TransferCkid "RProj TransferCkid"
  49. Alias UnlockNameRevisions "RProj UnlockNameRevisions"
  50. Alias UnmountProject "RProj UnmountProject"
  51. Alias UnobsoleteNameRevisions "RProj UnobsoleteNameRevisions"
  52. Alias UnObsoleteProjectorFile "RProj UnObsoleteProjectorFile"
  53. Alias UpdateProjectorDatabase "RProj UpdateProjectorDatabase"
  54. Alias Directory "Directory2"
  55.  
  56. #        Finally, we synchronize the current directory settings between both ToolServer
  57. #    and SourceServer by calling our newly aliased Directory command.
  58.  
  59. Directory > Dev:Null
  60.  
  61. #        Now ToolServer is ready to execute any script containing Projector commands!